home *** CD-ROM | disk | FTP | other *** search
- ISHL(3I) Last changed: 4-13-99
-
-
- NNAAMMEE
- IISSHHLL, IIIISSHHLL, JJIISSHHLL, KKIISSHHLL - Performs logical shift with zero fill
-
- SSYYNNOOPPSSIISS
- IISSHHLL (([II==]_i,, [SSHHIIFFTT==]_s_h_i_f_t))
- IIIISSHHLL (([II==]_i,, [SSHHIIFFTT==]_s_h_i_f_t))
- JJIISSHHLL (([II==]_i,, [SSHHIIFFTT==]_s_h_i_f_t))
- KKIISSHHLL (([II==]_i,, [SSHHIIFFTT==]_s_h_i_f_t))
-
- IIMMPPLLEEMMEENNTTAATTIIOONN
- UNICOS, UNICOS/mk, IRIX systems
-
- CF90, MIPSpro 7 Fortran 90, MIPSpro Fortran 77
-
- SSTTAANNDDAARRDDSS
- Fortran extensions
-
- DDEESSCCRRIIPPTTIIOONN
- The IISSHHLL, IIIISSHHLL, JJIISSHHLL, KKIISSHHLL intrinsic functions perform a logical
- shift on an integer. In this shift, the intrinsic shifts the integer,
- left or right, by a specified number of bits. Bits shifted out of one
- end are lost, and zeros are filled in. These functions accept the
- following arguments:
-
- _i Must be of type integer. For IIIISSHHLL, must be of type integer
- (KIND=2). For JJIISSHHLL, must be of type integer (KIND=4). For
- KKIISSHHLL, must be of type integer (KIND=8). This is the value
- to be shifted.
-
- _s_h_i_f_t Must be of the same type and kind type parameter as _a. This
- is the direction and distance of the shift.
-
- Positive shifts are left, toward the most significant bit.
- Negative shifts are right, toward the least significant bit.
- If _s_h_i_f_t is zero, no shift is performed.
-
- These are elemental intrinsic functions. The names of these
- intrinsics cannot be passed as arguments.
-
- RREETTUURRNN VVAALLUUEESS
- The result type and type parameter are the same as _i. The result is
- equal to _i logically shifted by _s_h_i_f_t bits. Zeros are shifted in from
- the opposite end.
-
- The integer kind determines the end that the bits are shifted out of.
- For an integer (KIND=4) argument, 32 bits are shifted. If you want to
- shift a 1-byte or 2-byte argument, declare it as KIND=1 or KIND=2.
-
- SSEEEE AALLSSOO
- _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l for the printed version of this
- man page.
-